package com.yootk.config;

import com.yootk.vo.CompanyA;
import com.yootk.vo.CompanyB;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class NewCompanyConfig {

    @Bean
    public CompanyA companyA() {
        CompanyA companyA = new CompanyA();
        companyA.setTitle("Hello Muyan");
        return companyA;
    }

    @Bean
    public CompanyB companyB() {
        CompanyB companyB = new CompanyB();
        companyB.setTitle("Hello Yootk");
        return companyB;
    }
}
